package com.wk.code.wkserver.request.base;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wk.code.wkserver.request.admin.TechTypeRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Author wq
 * @Date 2020/4/26
 **/
@Data
public class BasePageRequest implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "当前页")
    private Integer pageNumber = 1;

    @ApiModelProperty(value = "每页大小")
    private Integer pageSize = 10;


    public final <T> IPage<T> page() {
        return new Page<>(pageNumber, pageSize);
    }
}
